package com.zhixin.fans.ks.ui.main.mutual;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import com.zhixin.fans.ks.R;

import java.util.Arrays;


/**
 * Created by Eenie on 2017/6/2.
 * Email: eeniework@gmail.com
 * Des:
 */

public class MutualImgAdapter extends BaseQuickAdapter<String, BaseViewHolder>{
    public MutualImgAdapter(String img, OnItemClickListener listener) {
        super(R.layout.item_upload_img, Arrays.asList(img));
        setOnItemClickListener(listener);
    }

    @Override
    protected void convert(final BaseViewHolder helper, String item) {


        Glide.with(mContext).asBitmap().load(item).into((ImageView) helper.getView(R.id.img_pic));

    }







}
